import numpy as np
np_array = np.array([[8,3,4,-2],[11, 4, 6,7],[2, 5,8,3]])
sorted_index = np_array.argsort() # 默认按照行排序
print(sorted_index)
